package cn.lili.modules.goods.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;

/**
 * @author paulG
 * @since 2022/5/25
 **/
@Data
public class WholesaleDTO {

    @Min(value = 2, message = "起购数量不能小于2")
    @ApiModelProperty(value = "起购数量")
    private Integer num;

    @Min(value = 0, message = "采购价格不能小于0")
    @ApiModelProperty(value = "采购价格")
    private Double price;
}
